package com.welike.shibo.service;

import com.welike.shibo.eneity.JsonResult;
import com.welike.shibo.exception.BaseException;

/**
 * @author fangyu
 * @version v1.0.0
 * @since 2019-08-19 22:18
 */
public interface SmsService {
    /**
     * 登录验证码 2 Ali
     * @throws BaseException
     */
    void sendMsgForLoginToAli(String phone, int code) throws Exception;

    /**
     * 注册验证码 2 Tencent
     * @throws BaseException
     */
    void sendMsgForRegisterToTencent(String phone, int code) throws Exception;

    /**
     * 修改密码验证码 2 Tencent
     * @throws BaseException
     */
    void sendMsgForChangePwdToTencent(String phone, int code) throws Exception;

    /**
     * 修改密码校验
     * @param phone 手机号
     * @param code 验证码
     * @return JsonResult
     */
    JsonResult resetPwdCheckSms(String phone, String code);
}
